<?php
    header('Content-type:text/json');
    require "../../connection.php";
    $id = $_POST['id'];
    $option = array("id"=>$id);
    $tbName = "admin";
    $result = $conn->where($option)->select($tbName);
     echo json_encode($result);

?>